package com.springboot.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 文章评论表
 * </p>
 *
 * @author 4vsy
 * @since 2020-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Comment implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文章外键id
     */
    private Integer articleId;

    /**
     * 评论人
     */
    private String username;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 状态
     */
    private Boolean status;

    private String ip;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
